/**
 * Created By   : robertwilson
 * Date         : 5/17/13
 * Time         : 2:13 PM
 * File         :
 * Class        : Forecast
 */

var Forecast = function() {

    var _init = function () {
        _handleEvents();

        try {
            $('.trend-analysis').gvChart({
                chartType: 'ColumnChart',
                gvSettings: {
                    vAxis: {title: 'Trend Analysis'},
                    hAxis: {title: 'Years'},
                    width: 660,
                    height: 300
                }
            });
        } catch (e) {
            console.log('Yawa oo: ' , e.message);
        }

        try {
            $('.forecast-table').gvChart({
                chartType: 'ColumnChart',
                gvSettings: {
                    vAxis: {title: 'Forecast'},
                    hAxis: {title: 'Years'},
                    width: 660,
                    height: 300
                }
            });
        } catch (e) {
            console.log('Yawa oo: ', e.message);
        }
    };

    var _handleEvents = function () {

    };

    return {
        init: function() {
            _init();
        }
    }
}

$(function() {
    var forecast = new Forecast();
    forecast.init();
})